-- GENERATED SPELL FOR [Hive'Zara Tail Lasher] --


function spell0_15336(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(25645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15336', 30000, 1)
end

function spell1_15336(pUnit, Event) --@Tail Lash,n/a--
pUnit:FullCastSpellOnTarget(25654,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15336', 2329, 1)
end

function Sorts_15336(pUnit, Event)
local choix_sorts_15336 = math.random(0, 1)
if choix_sorts_15336 == 0 then
pUnit:RegisterEvent('spell0_15336', 1, 1)
end
if choix_sorts_15336 == 1 then
pUnit:RegisterEvent('spell1_15336', 1, 1)
end
end

function mob15336_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15336', math.random(1500, 3000), 1)
end

function mob15336_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15336_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15336_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15336, 1, 'mob15336_Action')
RegisterUnitEvent(15336, 2, 'mob15336_Leave')
RegisterUnitEvent(15336, 3, 'mob15336_Kill')
RegisterUnitEvent(15336, 4, 'mob15336_Die')
